function initOrgConfig(diagramId,nodeDataArray) {
	var $ = go.GraphObject.make;  // for conciseness in defining templates

    myDiagram =
      $(go.Diagram, diagramId,  // must be the ID or reference to div
        { allowCopy: false });

    var bluegrad = $(go.Brush, go.Brush.Linear, { 0: "rgb(60, 204, 254)", 1: "rgb(70, 172, 254)" });
   
    // replace the default Node template in the nodeTemplateMap
    myDiagram.nodeTemplate =
      $(go.Node, "Auto",
        { deletable: false },
        new go.Binding("text", "name"),
        $(go.Shape, "Rectangle",
          { fill: bluegrad,
            stroke: bluegrad,
            stretch: go.GraphObject.Fill,
            alignment: go.Spot.Center }),
        $(go.TextBlock,
          { font: "bold 12pt Helvetica, bold 宋体, sans-serif",
            alignment: go.Spot.Center,
            margin: 6 },
          new go.Binding("text", "name"))
      );

    // define the Link template
    myDiagram.linkTemplate =
      $(go.Link,  // the whole link panel
        { routing: go.Link.Orthogonal,
          corner: 5,
          selectable: false },
        $(go.Shape));  // the default black link shape

    // create the model for the organization tree
    myDiagram.model = new go.TreeModel(JSON.parse(nodeDataArray));

    // create a TreeLayout for the organization tree
    myDiagram.layout =
      $(go.TreeLayout,
        { angle: 90,
          nodeSpacing: 5 });
  }